package com.mxdx.edu.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 上岗时间
 * @author howie
 *
 */
public enum WorkTimeEnums {

	 ONE_WEEK("0", "一周以内"),
	 HALF_MONTH("1", "半个月以内"),
	 ONE_MONTH("2", "一个月以内"),
	 NONE("3", "暂时不换")
	 ;
	
	private String type;
	private String desc;
	
	private WorkTimeEnums(String type, String desc) {
		this.type = type;
		this.desc = desc;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	public static Map<String, WorkTimeEnums> getMap(){
		return WORK_TIME_ENUMS_MAP;
	}
	
	private static Map<String, WorkTimeEnums> WORK_TIME_ENUMS_MAP = new HashMap<>();
	static {
		WORK_TIME_ENUMS_MAP.put("0", ONE_WEEK);
		WORK_TIME_ENUMS_MAP.put("1", HALF_MONTH);
		WORK_TIME_ENUMS_MAP.put("2", ONE_MONTH);
		WORK_TIME_ENUMS_MAP.put("3", NONE);
	}
}
